package workspace.teaweb.Merchant.mappers;


import org.springframework.stereotype.Repository;
import workspace.teaweb.Merchant.pojo.dto.MerchantQuery;
import workspace.teaweb.Merchant.pojo.entity.Merchant;
import workspace.teaweb.Merchant.pojo.vo.MerchantVO;

import java.util.List;

@Repository
public interface MerchantMapper {

    void addM(Merchant merchant);

    /*根据输入的商品名，模糊查询商品名称和规格信息*/
    List<MerchantVO> selectMerchantByName(MerchantQuery merchantQuery);



    /*根据传入的商户id，查询商品(商户限定功能)*/
//    List<MerchantVO> selectMerchantByUserId(Integer userId);
    /*更新商品*/
    void updateMerchant(Merchant merchant);
    /*删除商品*/
    void deleteMerchantById(Long id);
}
